MYSQL-ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'n[c].titulo_amigable ''' at line 4 SQL:
SELECT _noticias_noticia.*,_noticias_has_categoria.id_categoria,titulo,(to_days(NOW())-dias_caducidad)-to_days(fecha) AS diff
FROM _noticias_noticia
INNER JOIN _noticias_has_categoria ON _noticias_noticia.id_noticia=_noticias_has_categoria.id_noticia
WHERE _noticias_noticia.titulo_amigable='' n[c].titulo_amigable ''